import request from "@/utils/request";

export const computerRoomManagement={
  contextPath: '/equip', //按照实际应用修改成微服务的名�?//
  page: (data)=>{ //分页查询//
    return request({
      url: computerRoomManagement.contextPath+'/en-wz-jfgl/page',
      method: 'POST',
      data: data
    })
  },
  update: (data)=>{ //更新多条数据//
    return request({
      url: computerRoomManagement.contextPath+'/en-wz-jfgl/update',
      method: 'POST',
      data: data
    })
  },
  insert: (data)=>{ //新增多条数据//
    return request({
      url: computerRoomManagement.contextPath+'/en-wz-jfgl/insert',
      method: 'POST',
      data: data
    })
  },
  delete: (data) =>{ //删除多条数据//
    return request({
      url: computerRoomManagement.contextPath+'/en-wz-jfgl/delete',
      method: 'POST',
      data: data
    })
  },
  getById: (id) =>{ //通过主键查询多条数据//
    return request({
      url: computerRoomManagement.contextPath+'/en-wz-jfgl/'+id,
      method: 'POST'
    })
  },
  queryDictData: (code)=>{ //字典//
    return request({
      url: computerRoomManagement.contextPath+'/t-en-interface-code/queryLeaf?code='+code,
      method: 'POST',
      // data: code
    })
  },
  getJfByGldw: (code) => { //管理单位联动库房//
    return request({
      url: '/patorl/en-wz-jfgl/ywdw/' + code,
      method: 'POST'
    })
  },
}
